package com.baizhi.sync2;

public class ThreadDemo {
    public static void main(String[] args) {
        Account acc = new Account("ICBC-111",5000.0);//定义一张银行卡

        Thread t1 = new DrawThread("祁博",acc,1000); //祁博花了一千


        Thread t2 = new DrawThread("女朋友",acc,3000);//女朋友取了三千

        Thread t3 = new DrawThread("前女友",acc,4000); //

        t1.start();
        t2.start();
        t3.start();

    }
}
